package cn.edu.ncu.housinghub.dto.request.agent;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class ApplyAgentHouse {
    private Long houseId;
    // 申请理由
    @NotBlank(message = "申请理由不能为空")
    private String reason;

    // 校验手机号格式
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式错误")
    private String phone;
    private String wechatNumber;
}
